# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-colorlog
_pkgname=colorlog
pkgver=4.1.0
pkgrel=1
epoch=1
pkgdesc='Log formatting with colors.'
arch=('any')
url='https://pypi.org/project/colorlog/#files'
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('af9a84355e6122a59e9176b0d30bb444bdebf3a54d25e71ae61698f83ef24f42594220ee1fae9c3cfeca1fc442871b4f1a62dcedb5bff5ce9f528e3433f80500')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

